import request from '@/utils/request'

export function getList(current, limit, params) {
  return request({
    url: `/admin/hosp/hospitalSet/findHospitalSet/${current}/${limit}`,
    method: 'post',
    data: params
  })
}

export function removeById(id) {
  return request({
    url: `/admin/hosp/hospitalSet/${id}`,
    method: 'delete'
  })
}


export function batchRemove(idList) {
  return request({
    url: `/admin/hosp/hospitalSet/batchRemove`,
    method: 'delete',
    data: idList
  })
}

export function lockHospitalSet(id, status) {
  return request({
    url: `/admin/hosp/hospitalSet/lockHospitalSet/${id}/${status}`,
    method: 'put'
  })
}

export function saveHospitalSet(data) {
  return request({
    url: `/admin/hosp/hospitalSet/saveHospitalSet`,
    method: 'post',
    data: data
  })
}

export function getHospitalSet(id) {
  return request({
    url: `/admin/hosp/hospitalSet/getHospitalSet/${id}`,
    method: 'get'
  })
}

export function updateHospitalSet(data) {
  return request({
    url: `/admin/hosp/hospitalSet/updateHospitalSet`,
    method: 'post',
    data: data
  })
}